package Year2021.month10.Day21.Day29Interface;

public class Mouse implements Usb {
    private String brand;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public void start(Computer computer) {
        System.out.println("在" + computer.getBrand() + "电脑上接上usb，可以使用" + getBrand() + "usb鼠标");
    }

    @Override
    public void stop(Computer computer) {
        System.out.println("移除usb，" + getBrand() + "usb鼠标无法使用！");

    }
}
